package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.FinMouthBillDto;
import com.woniuxy.company5.entity.FinMouthBill;
import com.woniuxy.company5.mapper.FinMouthBillMapper;
import com.woniuxy.company5.service.FinMouthBillService;
import com.woniuxy.company5.vo.FinMouthBillVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

/**
 * 功能描述
 *
 * @author PC
 * @date -2022/12/7-时间-17:40
 * @product company5
 */
@Service
public class FinMouthBillServiceImpl implements FinMouthBillService {
    @Resource
    private FinMouthBillMapper finMouthBillMapper;

    @Override
    public List<BigDecimal> TotalRevenue() {
        return finMouthBillMapper.TotalRevenue();
    }

    @Override
    public List<String> TotalExpenditure() {
        return finMouthBillMapper.TotalExpenditure();
    }

    @Override
    public List<BigDecimal> PublicAccounts() {
        return finMouthBillMapper.PublicAccounts();
    }

    @Override
    public List<FinMouthBillVo> selAll(FinMouthBillDto finMouthBillDto) {
        return finMouthBillMapper.selAll(finMouthBillDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return finMouthBillMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(FinMouthBill record) {
        return finMouthBillMapper.insertSelective(record);
    }

    @Override
    public FinMouthBill selectByPrimaryKey(Long id) {
        return finMouthBillMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FinMouthBill record) {
        return finMouthBillMapper.updateByPrimaryKeySelective(record);
    }
}
